import request from '@/utils/request'

// 查询套装定义列表
export function listSuitpack(query) {
  return request({
    url: '/product/suitpack/list',
    method: 'get',
    params: query
  })
}

// 查询套装定义详细
export function getSuitpack(guid) {
  return request({
    url: '/product/suitpack/' + guid,
    method: 'get'
  })
}




// 新增套装定义
export function addSuitpack(data) {
  return request({
    url: '/product/suitpack',
    method: 'post',
    data: data
  })
}

// 修改套装定义
export function updateSuitpack(data) {
  return request({
    url: '/product/suitpack',
    method: 'put',
    data: data
  })
}

// 删除套装定义
export function delSuitpack(guid) {
  return request({
    url: '/product/suitpack/' + guid,
    method: 'delete'
  })
}

// 导出套装定义
export function exportSuitpack(query) {
  return request({
    url: '/product/suitpack/export',
    method: 'get',
    params: query
  })
}
